import json


def write_json(value: dict, target_path: str):
    with open(target_path, "w+") as f:
        json.dump(value, f, indent=4)


def read_json(source_path: str):
    with open(source_path, "r") as f:
        value = json.load(f)
    return value
